Comparison of C and Java Performance in Finite Element Computations
نویسنده
چکیده
The Java programming language has several features, which makes it attractive for software development in computational engineering and sciences. One major obstacle to use of Java in computationally intensive applications is its reputation of a slow language in comparison to Fortran or C. In this paper the performance of the developed Java finite element code is compared to that of the C code on the solution of three-dimensional elasticity problems. It is shown that simple code tuning can provide Java/C performance ratio 90% for the LDU solution of finite element equations. The PCG iterative solution algorithm is 1.5 times slower using the Java tuned code in comparison to the C code. We recommend using JVM 1.2 since in many cases it is considerably faster in finite element computations than JVMs 1.3 and 1.4.
منابع مشابه
Java Performance in Finite Element Computations
1 The performance of the developed Java finite element code is compared to that of the C finite element code on the solution of three-dimensional elasticity problems using Intel Pentium 4 computer. Untuned Java code is approximately two times slower then analogous C code. It is shown that code tuning with the use of blocking technique can provide Java/C performance ratio 90% for the LDU solutio...
متن کاملThe Performance of an Hexahedron C* Element in Finite Element Analysis
The performance of an 8-noded hexahedron C1* element in elasticity is investigated. Three translational displacements and their derivatives as strain in each direction are considered as degrees of freedom (d.o.f.’s) at each node. The geometric mapping is enforced using a C0 element with no derivative as nodal d.o.f.’s . The stiffness matrix of the element is also computed using a transformation...
متن کاملA Comparison Between Electrical Circuit and Finite Element Modeling Methods for Performance Analysis of a Three-Phase Induction Motor under Voltage Unbalance
Induction motor is the most popular load in the industry, it is very important to study about the effects of voltage quality on induction motor performance. One of the most important voltage quality problems in power system is voltage unbalance. This paper evaluates and compares two methods including finite element method (FEM) and equivalent electrical circuit simulation for investigation ...
متن کاملThe Pattern of Ground Deformations due to Circular Tunneling
This paper presents the results of a recent study about the following aspects relevant to tunneling in soft grounds:e) The domain of deformations due to tunneling in soft ground can be specified within a boundary of a parabolic shape. This boundary is defined by a parabolic formula as a function of a central angle which depends on the soil type i.e., either cohesive or cohesionless. This para...
متن کاملThe Pattern of Ground Deformations due to Circular Tunneling
This paper presents the results of a recent study about the following aspects relevant to tunneling in soft grounds:e) The domain of deformations due to tunneling in soft ground can be specified within a boundary of a parabolic shape. This boundary is defined by a parabolic formula as a function of a central angle which depends on the soil type i.e., either cohesive or cohesionless. This para...
متن کامل